<template>
    <div>
      <el-dialog
        :title="abnormaltitle"
        :visible.sync="ver"
        width="450px"
        center :before-close="handleClose">
        <div v-for="(item,index) in abnormalarr" :key="index">
          <div>现象：{{item.question}}</div>
          <div style="color: green;">
            原因：<span v-for="(items,indexs) in item.answer" :key="indexs">{{items}}，</span>
          </div>
        </div>
      </el-dialog>
    </div>
</template>

<script>
    export default {
        name: "anomalyPi",
        props:{
          ver:"",
          abnormaltitle:String,
          abnormalarr:Array
        },
      data() {
        return {
          centerDialogVisible: true
        };
      },
      methods:{
        handleClose(){
          this.$emit("vers",false)
          // alert("aa")
            this.centerDialogVisible = false
          }
      }
    }
</script>

<style scoped>

</style>
